package com.lingz.manager.modules.wuxue.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lingz.manager.modules.wuxue.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@Table(name = "w_huangshi_data")
@TableName("w_huangshi_data")
@ApiModel(value = "黄氏气象数据")
public class HuangshiData extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据id")
    private String dataId;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "收集时间")
    private Date collectTime;

    @ApiModelProperty(value = "设备id")
    private String deviceId;


    @ApiModelProperty(value = "电池电压")
    private double dianChiDianYa;

    @ApiModelProperty(value = "50cm土壤含水量")
    private double fiftyTuRangHanShuiLiang;

    @ApiModelProperty(value = "50cm土壤温度")
    private double fiftyTuRangWenDu;

    @ApiModelProperty(value = "5cm土壤含水量")
    private double fiveTuRangHanShuiLiang;

    @ApiModelProperty(value = "5cm土壤温度")
    private double fiveTuRangWenDu;

    @ApiModelProperty(value = "空气温度")
    private double kongQiWenDu;

    @ApiModelProperty(value = "路面温度")
    private double luDianWenDu;

    @ApiModelProperty(value = "日照时数")
    private double riZhaoShiShu;

    @ApiModelProperty(value = "湿润时间")
    private double shiRunShiJian;

    @ApiModelProperty(value = "10cm土壤含水量")
    private double tenTuRangHanShuiLiang;

    @ApiModelProperty(value = "10cm土壤温度")
    private double tenTuRangWenDu;

    @ApiModelProperty(value = "天降雨量")
    private double tianJiangYuLiang;

    @ApiModelProperty(value = "土壤导电率")
    private double tuRangDaoDianLv;

    @ApiModelProperty(value = "25cm土壤含水量")
    private double twentyFiveTuRangHanShuiLiang;

    @ApiModelProperty(value = "25cm土壤温度")
    private double twentyFiveTuRangWenDu;

    @ApiModelProperty(value = "20cm土壤含水量")
    private double twentyTuRangHanShuiLiang;

    @ApiModelProperty(value = "20cm土壤温度")
    private double twentyTuRangWenDu;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "上传时间")
    private Date uploadTime;

    @ApiModelProperty(value = "相对湿度")
    private double xiangDuiShiDu;

    @ApiModelProperty(value = "小时降雨量")
    private double xiaoShiJiangYuLiang;

}
